<?php
namespace extend\wechat\mini;

class Auth
{
    public static function webUserInfo($auth_code, $appid, $appsecret)
    {
        // 获取授权信息
        $url = "https://api.weixin.qq.com/sns/jscode2session?appid={$appid}&secret={$appsecret}&js_code={$auth_code}&grant_type=authorization_code";

        return getRequest($url);
    }

}